package GUI.Frame;

import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class TextPanel {
    public static void main(String[] args) {
        Frame frame = new Frame();

        Panel panel = new Panel();
        Panel panel2 = new Panel();

        frame.setLayout(null);

        frame.setBackground(new Color(0x30691D));

        frame.setBounds(200,200,400,400);

        panel.setBackground(Color.red);
        panel2.setBackground(Color.yellow);
        panel.setBounds(0,0,50,400);
        panel2.setBounds(50,0,350,200);
        frame.add(panel);
        frame.add(panel2);

        frame.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
        frame.setVisible(true);
    }
}
